#include <stdlib.h>
#include <malloc.h>
#define SW  *(unsigned char*)0xe001
#define LED  *(unsigned char*)0xe003
#define  VEC  *(void *)0x0080


void isr(void);
void isr(void)
{

}

typedef void (*FP)(void);
typedef struct
{
  char grade;
  int score;
}STD;

FP fpt;
STD *sp;

//void (*0x0800)(void) = isr;
void main()
{

     VEC = isr;
     fpt = isr;
     sp = calloc(1,sizeof(STD));

     while(1)
     {
         LED = ((SW & 0xfc)| 0x0c)^ 0x30;     // ~  bitwise   ! logical
     }

}





#if 0


      if((swBuff & swPattern) != 0)
      {
        ledBuff = ledBuff | ledPattern ;
      }
#if 0
      swPattern = swPattern << 1;
      ledPattern = ledPattern >>1;
#endif
#endif